package basic;

import com.google.common.collect.Lists;
import utils.DateUtils;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class TestDemo {

    public static void main(String[] args) {


        Calendar cal = Calendar.getInstance();
//        cal.set(Calendar.DAY_OF_MONTH,1);
//        System.out.println(DateUtils.formatDate("yyyy-MM-dd",cal.getTime()));
//        cal.set(Calendar.DAY_OF_MONTH,2);
//        System.out.println(DateUtils.formatDate("yyyy-MM-dd",cal.getTime()));
//        cal.set(Calendar.DAY_OF_MONTH,10);
//        System.out.println(DateUtils.formatDate("yyyy-MM-dd",cal.getTime()));
//        cal.set(Calendar.DAY_OF_MONTH,11);
//        System.out.println(DateUtils.formatDate("yyyy-MM-dd",cal.getTime()));

        System.out.println(new BigDecimal(100).compareTo(new BigDecimal(0)));
        System.out.println(new BigDecimal(-100).compareTo(new BigDecimal(0)));
        System.out.println(new BigDecimal(-0).compareTo(new BigDecimal(0)));
        if(new BigDecimal(-100).compareTo(new BigDecimal(0)) < 0) System.out.println("小于0");;



    }
}
